import request from '../../utils/request';

// 专家关注管理相关 API

// 检查是否已关注专家
export const checkExpertFollow = (params: any) => {
    return request({
        url: '/member/api/expert-follow/check',
        method: 'get',
        params
    });
};

// 获取关注的专家数量
export const getExpertFollowCount = (params: any) => {
    return request({
        url: '/member/api/expert-follow/count',
        method: 'get',
        params
    });
};

// 关注专家
export const followExpert = (data: any) => {
    return request({
        url: '/member/api/expert-follow/follow',
        method: 'post',
        data
    });
};

// 分页查询关注的专家列表
export const getExpertFollowPage = (params: any) => {
    return request({
        url: '/member/api/expert-follow/page',
        method: 'get',
        params
    });
};

// 取消关注专家
export const unfollowExpert = (data: any) => {
    return request({
        url: '/member/api/expert-follow/unfollow',
        method: 'delete',
        data
    });
};
